package cn.gorit.entity.content;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;
import org.springframework.data.redis.core.index.Indexed;

import java.io.Serializable;

/**
 * @version v1.0
 * @Classname CommentResponse
 * @Description 评论回复实体类
 * @Author CodingGorit
 * @Created on 2021/4/3 0:34
 * @IDLE IntelliJ IDEA
 **/
@Document(value = "comment")
public class CommentResponse implements Serializable {

    // 自己的唯一 ID
    @Indexed
    private String response_id;

    // 父亲 id
    private String comment_id;

    private String response_user_id;

    private String response_user_nickname;

    private String response_user_avatar;

    private String response_user_content;

    private String create_time;

    public String getResponse_user_id() {
        return response_user_id;
    }

    public void setResponse_user_id(String response_user_id) {
        this.response_user_id = response_user_id;
    }

    public String getResponse_user_nickname() {
        return response_user_nickname;
    }

    public void setResponse_user_nickname(String response_user_nickname) {
        this.response_user_nickname = response_user_nickname;
    }

    public String getResponse_user_avatar() {
        return response_user_avatar;
    }

    public void setResponse_user_avatar(String response_user_avatar) {
        this.response_user_avatar = response_user_avatar;
    }

    public String getResponse_user_content() {
        return response_user_content;
    }

    public void setResponse_user_content(String response_user_content) {
        this.response_user_content = response_user_content;
    }

    public String getCreate_time() {
        return create_time;
    }

    public void setCreate_time(String create_time) {
        this.create_time = create_time;
    }

    public String getComment_id() {
        return comment_id;
    }

    public void setComment_id(String comment_id) {
        this.comment_id = comment_id;
    }

    public String getResponse_id() {
        return response_id;
    }

    public void setResponse_id(String response_id) {
        this.response_id = response_id;
    }

    @Override
    public String toString() {
        return "CommentResponse{" +
                ", comment_id='" + comment_id + '\'' +
                ", response_id='" + response_id + '\'' +
                ", response_user_id='" + response_user_id + '\'' +
                ", response_user_nickname='" + response_user_nickname + '\'' +
                ", response_user_avatar='" + response_user_avatar + '\'' +
                ", response_user_content='" + response_user_content + '\'' +
                ", create_time='" + create_time + '\'' +
                '}';
    }
}
